package com.jqq.string_;

/**
 * @author 姬倩倩
 * @version 1.0
 */
public class StringAndStringBuffer {
    public static void main(String[] args) {
        //String -> StringBuffer
        String s = "hello";
        StringBuffer b1 = new StringBuffer(s);
        StringBuffer b2 = new StringBuffer();
        b2.append(s);

        //StringBuffer -> String
        String s2 = b1.toString();
        String s3 = new String(b1);
    }
}
